#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED

#include <stdio.h>
#include <avrx-io.h>
#include <avrx-signal.h>
#include "avrx.h"
#include <avr/pgmspace.h>

#include <leaf/osiface.h>
#include <leaf/rbuf.h>
#include "devices.h"

#include "tasks.h"
#include "tasks/choices_api.h"
#include "tasks/findline.h"
#include "tasks/hitwall.h"
#include "tasks/findline.h"

#define  SENSORPIN           PINA
#define  SENSORPORT          PORTA
#define  SENSORDDR           DDRA
#define  SENSOR_INIT()       {                                 \
								 SENSORPORT = 0xff;           \
		                         SENSORDDR  = 0x00;           \
		                         PORTE |= 0xf0;               \
		                         DDRE  &= 0x0f;               \
                             }/*便能后四个中断脚(PE7~PE4), 并将这几个中断脚设为输入*/
#endif /* CONFIG_H_INCLUDED */
